home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / apport / README.Debian < prev    next >
Encoding:
Text File  |  2009-09-25  |  1.3 KB  |  47 lines

  1. Temporarily enabling apport
  2. ===========================
  3.  
  4. The automatic crash interception component of apport is disabled by default in
  5. stable releases for a number of reasons [1].  To enable it just for the current session, do
  6.  
  7.   sudo force_start=1 /etc/init.d/apport restart
  8.  
  9. Then you can simply trigger the crash again, and Apport's dialog will show up
  10. with instructions to report a bug with traces. Apport will be automatically
  11. disabled on next start.
  12.  
  13. If you are triaging bugs, this is the best way to get traces from bug reporters
  14. that didn't use Apport in the first place.
  15.  
  16. To enable it permanently, do:
  17.  
  18.   sudo nano /etc/default/apport
  19.  
  20. and change enabled from "0" to "1".
  21.  
  22.  
  23. [1] https://wiki.ubuntu.com/Apport#How%20to%20enable%20apport
  24.  
  25. Crash notification on servers
  26. =============================
  27.  
  28. You can use sth. like
  29.  
  30. if [ -x /usr/bin/apport-cli ]; then 
  31.     if groups | grep -qw admin && /usr/share/apport/apport-checkreports -s; then
  32.     cat <<-EOF
  33.     You have new problem reports waiting in /var/crash. 
  34.     To take a look at them, run "sudo apport-cli".
  35.  
  36.     EOF
  37.     elif /usr/share/apport/apport-checkreports; then
  38.     cat <<-EOF
  39.     You have new problem reports waiting in /var/crash. 
  40.     To take a look at them, run "apport-cli".
  41.  
  42.     EOF
  43.     fi
  44. fi
  45.  
  46. in your .bashrc to get automatic notification of problem reports.
  47.